<?php

namespace app\scan_bag\service;

use app\BaseService;
use think\facade\Db;

class MallService  extends BaseService
{
    /**
     * 获取展示商品信息
     * @return array
     */
    public static function getGoodsDetails($ids):array
    {
        $goods = Db::connect('mall')
            ->table('eb_store_product')
            ->where('id','=', $ids)
            ->field('store_name,id,image')
            ->find();
        return $goods ?? [];
    }
}